str = [-48211, 23146,-18036,-42318,-24871,-75292,-22227,
       77559,49455,-45618,-56887,-52647,69109,-79908,-23810,
       25529,-48969,-44284,35248,-50602,44570,-67835,-20193,
       7941,12216,-9138,-1038,-55577,51881,32919,-322,-76329,
       -23935,61642,-38647,31193,66349,19125,28752,35805,53507,
       51865,63158,42617,51956,-40651,-11854,-77012,-4936,-56605,
       -47615,-40365,-44440,12192,47575,47775,-76946,-33462,72197,
       54935,79456,-8124,58606,-24478,-26481,-60041,-73285,-40131,
       39083,35467,75673,12591,7332,58832,-24792,-20711,-61819,43354,
       -17724,13245,66748,14661,52879,-57692,-53146,20455,70082,-50093,
       66992,62280,-75157,66449,-25843,63448,-38029,27675,-76592,
       -31315,67543,42490,-75847,63217,-24918,11485,42049,30289,70773,
       60229,-6356,-26951,-6525,-19608,67710,-33646,2700,-65436,66808,
       -7217,-35529,53801,-24937,-30687,40250,29220,-47238,-77778,
       -23105,-43831,-29093,-35561,78659,-24941,-52344,-26259,66543,
       69704,-75969,57316,49934,-2325,-49634,-36591,58066,-61924,9763,
       -19233,-47360,-3429,53549,-2890,-29627,-51387,46423,-69376,
       57832,79184,-67155,-45272,-44646,-16249,-834,-45987,38809,
       26821,7754,25352,16525,11785,2669,-13540,-70540,33035,29869,
       67526,51110,-40368,-31707,-76249,36203,-58158,860,-73424,
       -29545,-32717,-62801,-51713,-33532,-49957,-16986,1821,13794,
       62179,35834,-27397,9001,-36411,77955,-54473,55374,624,11986,
       64834,-46341,-38145,52360,-75230,1486,-59346,-71479,-42310,
       -37504,9380,-35735,12950,56663,-18536,41236,-56868,11507,-55749,
       24952,-54699,-73570,-19213,-2096,15431,24376,-4141,40957,-250,
       76483,-27057,-15416,-49857,14798,-43055,-45087,-63716,-22402,
       -36567,-26027,20093,52813,18238,-46956,29476,79701,74280,52608,
       11208,-61469,-2440,36509,-55039,58347,-45587,40391,2723,30271,
       1348,-77526,26755,54291,-12942,56898,-10911,24002,-68189,5373,
       -78399,-24756,59346,21694,-51943,-2416,54737,57533,-2714,49017,
       30141,-71505,67547,-52298,45003,-67491,-73950,79415,52899,8772,
       29687,-25753,11246,-23557,-51461,78303,-46659,17627,22305,
       -34848,-57000]
min_1 = str[0]
max_1 = str[0]
for i in str:
    if min_1 > i:
        min_1 = i
    elif max_1 < i :
        max_1 = i
print(max_1, min_1)